package com.yict.csms.resourceplan.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yict.csms.system.entity.DataDict;

/**
 * 
 * @author Patrick.Deng
 * 
 */
@Entity
@Table(name = "CSMS_RTGC_FL_PLAN")
public class RtgcFlPlan {

	@Id
	@Column(name = "PLANID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "csms_rtgc_fl_plan_seq")
	@SequenceGenerator(name = "csms_rtgc_fl_plan_seq", sequenceName = "SEQ_CSMS_RTGC_FL_PLAN", allocationSize = 1, initialValue = 1)
	private Long planId;

	@ManyToOne
	@JoinColumn(name = "ALLID")
	private RtgcFlPlanAll rtgcFlPlanAll;

	@Column(name = "OPERATTIME")
	private Date operatTime;

	@ManyToOne
	@JoinColumn(name = "TMODE")
	private DataDict tMode;

	@Column(name = "ADDORCUT")
	private String addorcut;

	@Column(name = "CHANGEQUANTITY")
	private double changeQuantity;

	@Column(name = "HOURS")
	private double hours;

	@Column(name = "QUANHOURS")
	private double quanHours;

	@Column(name = "ALLQUANHOURS")
	private double allQuanHours;
	
	@Column(name = "CREATEPERSON")
	private Long createperson;

	@Column(name = "CREATEDATE")
	private Date createdate;

	@Column(name = "UPDATEPERSON")
	private Long updateperson;

	@Column(name = "UPDATEDATE")
	private Date updatedate;

	public Long getPlanId() {
		return planId;
	}

	public void setPlanId(Long planId) {
		this.planId = planId;
	}

	public RtgcFlPlanAll getRtgcFlPlanAll() {
		return rtgcFlPlanAll;
	}

	public void setRtgcFlPlanAll(RtgcFlPlanAll rtgcFlPlanAll) {
		this.rtgcFlPlanAll = rtgcFlPlanAll;
	}

	public Date getOperatTime() {
		return operatTime;
	}

	public void setOperatTime(Date operatTime) {
		this.operatTime = operatTime;
	}

	public DataDict gettMode() {
		return tMode;
	}

	public void settMode(DataDict tMode) {
		this.tMode = tMode;
	}

	public String getAddorcut() {
		return addorcut;
	}

	public void setAddorcut(String addorcut) {
		this.addorcut = addorcut;
	}

	public double getChangeQuantity() {
		return changeQuantity;
	}

	public void setChangeQuantity(double changeQuantity) {
		this.changeQuantity = changeQuantity;
	}

	public double getHours() {
		return hours;
	}

	public void setHours(double hours) {
		this.hours = hours;
	}

	public double getQuanHours() {
		return quanHours;
	}

	public void setQuanHours(double quanHours) {
		this.quanHours = quanHours;
	}

	public double getAllQuanHours() {
		return allQuanHours;
	}

	public void setAllQuanHours(double allQuanHours) {
		this.allQuanHours = allQuanHours;
	}

	public Long getCreateperson() {
		return createperson;
	}

	public void setCreateperson(Long createperson) {
		this.createperson = createperson;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Long getUpdateperson() {
		return updateperson;
	}

	public void setUpdateperson(Long updateperson) {
		this.updateperson = updateperson;
	}

	public Date getUpdatedate() {
		return updatedate;
	}

	public void setUpdatedate(Date updatedate) {
		this.updatedate = updatedate;
	}
}
